package design.patterns.mementomode.widedemo;

/**
 * @Desc:   备忘录角色
 *          备忘录对象将发起人对象传入的状态存储起来
 *          备忘录角色会根据发起人对象的胖端决定发起人对象的颞部状态的多少存储起来
 * @author: cww
 * @DateTime: 2020-06-13 14:55
 */

public class Memento {
    private String state;

    public Memento(String state) {
        this.state = state;
    }

    public String getState(){
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
